//
//  PicDisplayCell.m
//  RoadLine
//
//  Created by dllo on 15/4/23.
//  Copyright (c) 2015年 RedFireNoodles. All rights reserved.
//

#import "PicDisplayCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height

@implementation PicDisplayCell



-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    
    if (self) {
        
        self.myImageView = [[UIImageView alloc] initWithFrame:CGRectMake( 5, 5, WIDTH, WIDTH)];
        self.myImageView.layer.cornerRadius = 4;
        self.myImageView.contentMode = UIViewContentModeScaleAspectFill;
        self.myImageView.autoresizesSubviews = YES;
        self.myImageView.clipsToBounds = YES;
        [self.contentView addSubview:self.myImageView];
        [_myImageView release];
        
        if ([Singleton shareSingleton].isNight) {
            [[Singleton shareSingleton] loadNightModeInfoFormDisk];
        }
    }
    return self;
}

- (void)setLightDayModel {
    self.contentView.backgroundColor = [UIColor colorWithRed:250/255.0 green:245/255.0 blue:232/255.0 alpha:1];
}

- (void)setNightDayModel {
    self.contentView.backgroundColor = [UIColor blackColor];
}

- (void)dealloc
{
    [_myImageView release];
    [super dealloc];
}

@end
